package com.cy.pj.goodsdao.dao;

import com.cy.pj.goods.pojo.Goods;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface GoodsDao {

    @Select("select * from tb_goods")
    public List<Goods> findAll();

    @Insert("insert into tb_goods value(null, 'java之父', '詹姆斯高斯林', '1955-05-19 00:00:00')")
    public Integer insert();

    @Update("update tb_goods set name = 'java的爸爸' where name =  'java之父'")
    public Integer update();

    @Delete("delete from tb_goods where remark = '詹姆斯高斯林'")
    public Integer delete();
}
